package com.qingzhuge.scheduler.dto.request;

import com.qingzhuge.dto.request.BaseRequestDto;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author : zero.xiao
 * @description :
 * @date :2019-05-20 16:42
 * @modified :
 */
@Setter
@Getter
public class TaskJobKey extends BaseRequestDto {
    /** 任务名称 */
    @NonNull
    private String taskName;
    /** 任务分组 */
    @NonNull
    private String taskGroup;

    public TaskJobKey() {
    }

    public TaskJobKey(String taskName, String taskGroup) {
        this.taskName = taskName;
        this.taskGroup = taskGroup;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
